Optimal. Leaf size=130 \[ -\frac{\sqrt{1-d^2 x^2} \left (2 \left (3 d^2 f (A f+B e)-C \left (d^2 e^2-2 f^2\right )\right )-d^2 f x (C e-3 B f)\right )}{6 d^4 f}+\frac{\sin ^{-1}(d x) \left (2 A d^2 e+B f+C e\right )}{2 d^3}-\frac{C \sqrt{1-d^2 x^2} (e+f x)^2}{3 d^2 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.229777, antiderivative size = 133, normalized size of antiderivative = 1.02, number of steps used = 4, number of rules used = 4, integrand size = 35, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.114, Rules used = {1609, 1654, 780, 216} \[ -\frac{\sqrt{1-d^2 x^2} \left (2 \left (3 d^2 f (A f+B e)-\frac{1}{2} C \left (2 d^2 e^2-4 f^2\right )\right )-d^2 f x (C e-3 B f)\right )}{6 d^4 f}+\frac{\sin ^{-1}(d x) \left (2 A d^2 e+B f+C e\right )}{2 d^3}-\frac{C \sqrt{1-d^2 x^2} (e+f x)^2}{3 d^2 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1609
Rule 1654
Rule 780
Rule 216
Rubi steps
\begin{align*} \int \frac{(e+f x) \left (A+B x+C x^2\right )}{\sqrt{1-d x} \sqrt{1+d x}} \, dx &=\int \frac{(e+f x) \left (A+B x+C x^2\right )}{\sqrt{1-d^2 x^2}} \, dx\\ &=-\frac{C (e+f x)^2 \sqrt{1-d^2 x^2}}{3 d^2 f}-\frac{\int \frac{(e+f x) \left (-\left (2 C+3 A d^2\right ) f^2+d^2 f (C e-3 B f) x\right )}{\sqrt{1-d^2 x^2}} \, dx}{3 d^2 f^2}\\ &=-\frac{C (e+f x)^2 \sqrt{1-d^2 x^2}}{3 d^2 f}-\frac{\left (2 \left (3 d^2 f (B e+A f)-\frac{1}{2} C \left (2 d^2 e^2-4 f^2\right )\right )-d^2 f (C e-3 B f) x\right ) \sqrt{1-d^2 x^2}}{6 d^4 f}+\frac{\left (C e+2 A d^2 e+B f\right ) \int \frac{1}{\sqrt{1-d^2 x^2}} \, dx}{2 d^2}\\ &=-\frac{C (e+f x)^2 \sqrt{1-d^2 x^2}}{3 d^2 f}-\frac{\left (2 \left (3 d^2 f (B e+A f)-\frac{1}{2} C \left (2 d^2 e^2-4 f^2\right )\right )-d^2 f (C e-3 B f) x\right ) \sqrt{1-d^2 x^2}}{6 d^4 f}+\frac{\left (C e+2 A d^2 e+B f\right ) \sin ^{-1}(d x)}{2 d^3}\\ \end{align*}
Mathematica [A] time = 0.100861, size = 88, normalized size = 0.68 \[ \frac{3 d \sin ^{-1}(d x) \left (2 A d^2 e+B f+C e\right )-\sqrt{1-d^2 x^2} \left (6 A d^2 f+3 B d^2 (2 e+f x)+C \left (3 d^2 e x+2 d^2 f x^2+4 f\right )\right )}{6 d^4} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.018, size = 235, normalized size = 1.8 \begin{align*} -{\frac{{\it csgn} \left ( d \right ) }{6\,{d}^{4}}\sqrt{-dx+1}\sqrt{dx+1} \left ( 2\,C{\it csgn} \left ( d \right ) \sqrt{-{d}^{2}{x}^{2}+1}{x}^{2}{d}^{2}f+3\,B{\it csgn} \left ( d \right ) \sqrt{-{d}^{2}{x}^{2}+1}x{d}^{2}f+3\,C{\it csgn} \left ( d \right ) \sqrt{-{d}^{2}{x}^{2}+1}x{d}^{2}e+6\,A{\it csgn} \left ( d \right ) \sqrt{-{d}^{2}{x}^{2}+1}{d}^{2}f-6\,A\arctan \left ({\frac{{\it csgn} \left ( d \right ) dx}{\sqrt{-{d}^{2}{x}^{2}+1}}} \right ){d}^{3}e+6\,B{\it csgn} \left ( d \right ) \sqrt{-{d}^{2}{x}^{2}+1}{d}^{2}e-3\,B\arctan \left ({\frac{{\it csgn} \left ( d \right ) dx}{\sqrt{-{d}^{2}{x}^{2}+1}}} \right ) df+4\,C{\it csgn} \left ( d \right ) \sqrt{-{d}^{2}{x}^{2}+1}f-3\,C\arctan \left ({\frac{{\it csgn} \left ( d \right ) dx}{\sqrt{-{d}^{2}{x}^{2}+1}}} \right ) de \right ){\frac{1}{\sqrt{-{d}^{2}{x}^{2}+1}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 3.60375, size = 205, normalized size = 1.58 \begin{align*} -\frac{\sqrt{-d^{2} x^{2} + 1} C f x^{2}}{3 \, d^{2}} + \frac{A e \arcsin \left (\frac{d^{2} x}{\sqrt{d^{2}}}\right )}{\sqrt{d^{2}}} - \frac{\sqrt{-d^{2} x^{2} + 1} B e}{d^{2}} - \frac{\sqrt{-d^{2} x^{2} + 1} A f}{d^{2}} - \frac{\sqrt{-d^{2} x^{2} + 1}{\left (C e + B f\right )} x}{2 \, d^{2}} + \frac{{\left (C e + B f\right )} \arcsin \left (\frac{d^{2} x}{\sqrt{d^{2}}}\right )}{2 \, \sqrt{d^{2}} d^{2}} - \frac{2 \, \sqrt{-d^{2} x^{2} + 1} C f}{3 \, d^{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.08703, size = 267, normalized size = 2.05 \begin{align*} -\frac{{\left (2 \, C d^{2} f x^{2} + 6 \, B d^{2} e + 2 \,{\left (3 \, A d^{2} + 2 \, C\right )} f + 3 \,{\left (C d^{2} e + B d^{2} f\right )} x\right )} \sqrt{d x + 1} \sqrt{-d x + 1} + 6 \,{\left (B d f +{\left (2 \, A d^{3} + C d\right )} e\right )} \arctan \left (\frac{\sqrt{d x + 1} \sqrt{-d x + 1} - 1}{d x}\right )}{6 \, d^{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] time = 112.876, size = 617, normalized size = 4.75 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.98318, size = 186, normalized size = 1.43 \begin{align*} -\frac{{\left (6 \, A d^{11} f + 6 \, B d^{11} e - 3 \, B d^{10} f - 3 \, C d^{10} e + 6 \, C d^{9} f +{\left (2 \,{\left (d x + 1\right )} C d^{9} f + 3 \, B d^{10} f + 3 \, C d^{10} e - 4 \, C d^{9} f\right )}{\left (d x + 1\right )}\right )} \sqrt{d x + 1} \sqrt{-d x + 1} - 6 \,{\left (2 \, A d^{12} e + B d^{10} f + C d^{10} e\right )} \arcsin \left (\frac{1}{2} \, \sqrt{2} \sqrt{d x + 1}\right )}{3840 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]